package com.haima.ziliao.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.haima.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.haima.common.core.domain.BaseEntity;

/**
 * 我的读物对象 p_myduwu
 * 
 * @author hima
 * @date 2024-11-15
 */
public class PMyduwu implements Serializable
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 读物ID */
    @Excel(name = "读物ID")
    private Long did;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long uid;

    /** 购买时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buytime;

    /** 下载地址 */
    @Excel(name = "下载地址")
    private String downloadurl;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    @TableField(exist = false)
    private PDuwu duwu;

    public PDuwu getDuwu() {
        return duwu;
    }

    public void setDuwu(PDuwu duwu) {
        this.duwu = duwu;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDid(Long did) 
    {
        this.did = did;
    }

    public Long getDid() 
    {
        return did;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setBuytime(Date buytime) 
    {
        this.buytime = buytime;
    }

    public Date getBuytime() 
    {
        return buytime;
    }
    public void setDownloadurl(String downloadurl) 
    {
        this.downloadurl = downloadurl;
    }

    public String getDownloadurl() 
    {
        return downloadurl;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("did", getDid())
            .append("uid", getUid())
            .append("buytime", getBuytime())
            .append("downloadurl", getDownloadurl())
            .append("title", getTitle())
            .toString();
    }
}
